﻿


public static class Dialogs
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="text"></param>
    /// <param name="caption"></param>
    public static void ShowErrorBox(string text, string caption)
    {
        System.Windows.Forms.MessageBox.Show(text, caption, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="text"></param>
    /// <param name="caption"></param>
    public static void ShowInfoBox(string text, string caption)
    {
        System.Windows.Forms.MessageBox.Show(text, caption, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="text"></param>
    /// <param name="caption"></param>
    public static void ShowWarningBox(string text, string caption)
    {
        System.Windows.Forms.MessageBox.Show(text, caption, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning);
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="text"></param>
    /// <param name="caption"></param>
    public static void ShowConfirmBox(string text, string caption)
    {
        System.Windows.Forms.MessageBox.Show(text, caption, System.Windows.Forms.MessageBoxButtons.YesNoCancel, System.Windows.Forms.MessageBoxIcon.Question);
    }
}

